package indi.gao;

import com.alibaba.fastjson.JSONObject;
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIFactoryMethod;

import java.math.BigDecimal;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c)2019$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2019$-09$-04$</P>
 * <P>@version 1.0</P>
 */
public class BigDecimalTest {
    public static void main(String[] args) {
//        BigDecimal bigDecimal = new BigDecimal("1.2210000");
//        bigDecimal = bigDecimal.setScale(2);

        BigDecimal bigDecimal1 = new BigDecimal("12.0");
        BigDecimal bigDecimal2 = new BigDecimal(12);
        System.out.println(bigDecimal1.equals(bigDecimal2));
        System.out.println((bigDecimal1.compareTo(bigDecimal2)));
        System.out.println(134882225%3);
//        System.out.println(bigDecimal);
    }
}
